package com.ruoyi.qualityControl.service.impl;

import com.ruoyi.qualityControl.domain.ComplainSource;
import com.ruoyi.qualityControl.mapper.ComplainSourceMapper;
import com.ruoyi.qualityControl.service.ComplainSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ComplainSourceServiceImpl implements ComplainSourceService {
    @Autowired
    private ComplainSourceMapper complainSourceMapper;
    @Override
    public List<ComplainSource> settleAll() {
        return complainSourceMapper.selectAll();
    }

    @Override
    public Boolean insert(ComplainSource complainSource) {
        return complainSourceMapper.insert(complainSource);
    }

    @Override
    public Boolean update(ComplainSource complainSource) {
        return complainSourceMapper.update(complainSource);
    }

    @Override
    public Boolean deleteById(Integer id) {
        return complainSourceMapper.deleteById(id);
    }
}
